package cn.gztang.constant;

/**
 * @author GaoFeng2017
 * @date 2018/7/12 17:21
 */
public class ErrorCode {

    /** 空的请求参数 */
    public static final int NULL_REQUEST_PARAM = 10001;

    /** 非法的请求参数 */
    public static final int INVALID_REQUEST_PARAM = 10002;

    /** 数据未找到 */
    public static final int DATA_NOT_FOUND = 10003;

    /** 禁止删除 */
    public static final int CANNOT_REMOVE = 10004;

    /** api调用参数为null */
    public static final int NULL_API_INVOKE_PARAM = 10005;

    /** 未知错误 */
    public static final int UNKNOWN_ERROR = 10006;

    /** IO异常 */
    public static final int IO_EXCEPTION = 10007;

    /** 数据更新失败 */
    public static final int UPDATA_FAIL = 10008;

    /** 数据插入失败 */
    public static final int INSERT_FAIL = 10009;

    /** 测试数据不完善 */
    public static final int INCOMPLETE_TEST_DATA = 20001;

    /**用户未登录*/
    public static final int NOT_LOGGED_ON = 10010;

    /**用户权限不足*/
    public static final int INVALID_PERMISSION = 10011;

    /**商品库存不足*/
    public static final int STOCK_NOT_ENOUGH = 20001;

    /** 类型不匹配 */
    public static final int TYPE_MISMATCHING = 10012;

    /** 数据添加失败 */
    public static final int DATA_ADD_FAIL = 10013;

    /** api调用失败 */
    public static final int WX_API_INVOKE_FAIL = 10014;

    /** 数据删除失败 */
    public static final int DATA_REMOVE_FAIL = 10015;

    /** 数据更新失败 */
    public static final int DATA_UPDATE_FAIL = 10016;

}
